<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		
		<script src="validate.js"></script>
		<script type="text/javascript">
			let validate = new Validate()
			validate.add({val:'',type:'isEmpty',errMsg:'手机号不能为空'})
			validate.add({val:'158',type:'isPhone',errMsg:'请输入正确的手机号码'})
			console.log(validate.run());
		</script>
	</body>
</html>
